<table border="1">

    <tr>
        <th> Location name</th>
        <th> Outdoor / Indoor</th>
        <th> Address</th>
        <th> Type</th>
        <th> City</th>
    </tr>

    {foreach from=$locations item=l}
        <tr>
            <td>
                {$l.Location}
            </td>
            <td>
                {if $l.Outdoor_indoor eq 'o'}
                    Outdoor
                {else}
                    Indoor
                {/if}
            </td>
            <td>
                {$l.Address}
            </td>
            <td>
                {$location_type[$l.id_Locations_type]}
            </td>
            <td>
                {$l.City}
            </td>
            <td>
                <a href="/location/modify/{$l['Location_id']}" class="location_modify" data-name="{$l['Location']}" data-id="{$l['Location_id']}" data-outdoor="{$l['Outdoor_indoor']}" data-address="{$l['Address']}" data-location-type="{$l['id_Locations_type']}">Modify</a>
            </td>
            <td>
                <a href="#" class="location_delete" data-id="{$l['Location_id']}">Delete</a>
            </td>
        </tr>
    {/foreach}
</table>